package com.stylefeng.guns.common.dto.common;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Created by lyz on 2018/1/27.
 */
public abstract class BasePageRequest {

    @ApiModelProperty(value="最后行号")
    Integer offset =0;

    @ApiModelProperty(value="页数")
    Integer limit =15 ;

    @ApiModelProperty(value="排序字段")
    String sort = "";

    @ApiModelProperty(value="排序规则")
    String order = "desc";

    public Integer getOffset() {
        return offset;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }
}
